// <copyright file="ProvidersSectionGroup.cs" company="SharpSTS">
// Copyright (c) 2007, 2008 All Right Reserved, http://sharpsts.com/
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Barry Dorrans</author>
// <email>barryd@idunno.org</email>
// <date>2008-06-14</date>
// <summary>Represents the Providers section group in the application configuration file.</summary>

namespace SharpSTS.Configuration
{
    using System.Configuration;

    /// <summary>
    /// Represents the Providers section in the application configuration file.
    /// </summary>    
    internal class ProvidersSectionGroup : ConfigurationSectionGroup
    {
        /// <summary>
        /// Gets the name for the configuration section group.
        /// </summary>
        /// <value>The name for the configuration section group.</value>
        public static string ConfigurationSectionGroupName
        {
            get
            {
                return "stsProviders";
            }
        }

        /// <summary>
        /// Gets the <see cref="AuthorisationPolicyProviderSection"/> of the configuration group.
        /// </summary>
        /// <value>The <see cref="AuthorisationPolicyProviderSection"/> of the configuration group.</value>
        public AuthorisationPolicyProviderSection ClaimFillerProviders
        {
            get
            {
                return (AuthorisationPolicyProviderSection) Sections[AuthorisationPolicyProviderSection.ConfigurationSectionName];
            }
        }

        /// <summary>
        /// Gets the <see cref="EndpointValidationProviderSection" /> of the configuration group.
        /// </summary>
        /// <value>The <see cref="EndpointValidationProviderSection" /> of the configuration group.</value>
        public EndpointValidationProviderSection EndpointValidationProviders
        {
            get
            {
                return (EndpointValidationProviderSection) Sections[EndpointValidationProviderSection.ConfigurationSectionName];
            }
        }

        /// <summary>
        /// Gets the <see cref="PPIDGeneratorProviderSection" /> of the configuration group.
        /// </summary>
        /// <value>The <see cref="PPIDGeneratorProviderSection" /> of the configuration group.</value>
        public PPIDGeneratorProviderSection PPIDGeneratorProviders
        {
            get
            {
                return (PPIDGeneratorProviderSection)Sections[PPIDGeneratorProviderSection.ConfigurationSectionName];
            }
        }
    }
}
